<?php
/*
 * This file is part of tOAuth Class
 * Copyright (C) 2009-2010, Sergio Cruz aka scromega (scr.omega at gmail dot com)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
/*
session_start();

require_once('tOAuth/tOAuth.class.php');
require('config.php');

if(empty($_SESSION['toauth_at']) || empty($_SESSION['toauth_ats'])) {
	header('Location: index.php');
	die();
}
?>
<?php
$connection = new tOAuth(CONSUMER_KEY, CONSUMER_SECRET, $_SESSION['toauth_at'], $_SESSION['toauth_ats']);

$r = $connection->get('account/verify_credentials');
$r1 = $connection->get('statuses/mentions');
if(isset($r['error'])) die('<b>Error:</b> '.$r['error']);?>

*/
?>
<form name="replay" id="replay" method="post" action="javascript:formus(document.getElementById('replay'),'twitter/enviado.php','container_tab');">
<textarea rows="4" cols="20" name="msj" id="msj" class="twitter" >
<?php echo $_GET['us'].' '?>
</textarea>
<input  type="submit" value="Enviar" >
</form>
<script type='text/javascript'>
					var valid = new Validation('replay', {immediate : true, useTitles:true,onSubmit :true});
					validaciones(valid);
		</script>

<?php
//$r2 = $connection->post('statuses/update', array('status'=>'@'.$r1[$a]['user']['screen_name'].' '.'probando replay'));
 
?>
